package com.foton.lotterydomain.strategy.model.res;

import com.foton.lotterycommon.common.Constants;
import com.foton.lotterydomain.strategy.model.vo.DrawAwardInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author RenPu
 * @Date 2023/11/23 15:02
 * @Version 1.0
 * @Description: 抽奖影响
 **/

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DrawResult {

    /**
     * 用户ID
     */
    private String uId;

    /**
     * 策略ID
     */
    private Long strategyId;

    /**
     * 奖品ID
     */
    private String rewardId;

    /**
     * 奖品名称
     */

    private String awardName;

    private DrawAwardInfo drawAwardInfo;

    private Integer drawState = Constants.DrawState.FAIL.getCode();

    public DrawResult(String uId, Long strategyId, Integer statusCode) {
        this.uId = uId;
        this.strategyId = strategyId;
        this.drawState = statusCode;
    }

    public DrawResult(String uId, Long strategyId, Integer statusCode, DrawAwardInfo drawAwardInfo) {
        this.uId = uId;
        this.strategyId = strategyId;
        this.drawState = statusCode;
        this.drawAwardInfo = drawAwardInfo;
    }

}
